package factorybean;

import org.springframework.beans.factory.FactoryBean;

import java.time.LocalDate;

/**
 * @author wx-li
 * @company 希睿科技(www.xraitech.com)
 * @copyright (c) 2018 希睿科技( www.xraitech.com )Inc. All rights reserved.
 * @date 2020/10/16 16:51
 * @since JDK1.8
 */
public class NextDayDateFactoryBean implements FactoryBean<LocalDate> {
    @Override
    public LocalDate getObject() throws Exception {
        return LocalDate.now().plusDays(1);
    }

    @Override
    public Class<?> getObjectType() {
        return LocalDate.class;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }
}
